/*
 * @Author: 1243sd 782012816@qq.com
 * @Date: 2024-03-11 20:55:36
 * @LastEditors: 1243sd 782012816@qq.com
 * @LastEditTime: 2024-03-24 23:06:19
 * @FilePath: \ykt_admin\src\api\requestApi\logins.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import _axios from '../axios';

//登录
export function login(data) {
	return _axios({
		method: 'post',
		url: 'api/user/login',
		data
	})
}
// 获取用户信息
export function getUserInfo() {
	return _axios({
		method: 'get',
		url: 'api/auth/me'
	})
 }
 // 获取用户权限
 export function getUserPermisson() {
	 return _axios({
		 method: 'get',
		 url: 'api/permisson'
	 })
  }

 